//
//  MCRechargePayMoneyCollectionViewCell.m
//  TLYL
//
//  Created by MC on 2017/7/12.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCRechargePayMoneyCollectionViewCell.h"

@interface MCRechargePayMoneyCollectionViewCell ()


@end

@implementation MCRechargePayMoneyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self){
        [self initView];
    }
    return self;
}

-(void)setDataSource:(id)dataSource{
    _dataSource=dataSource;
    
    _lab_title.text =dataSource;
    
}

-(void)initView{
    
    self.backgroundColor = [UIColor  whiteColor];
    _lab_title =[[UILabel alloc]initWithFrame:CGRectZero];
    _lab_title.alpha=0.8;
    _lab_title.layer.cornerRadius=3;
    _lab_title.layer.borderWidth=1.0;
    _lab_title.layer.borderColor=[UIColor grayColor].CGColor;
    _lab_title.textColor=[UIColor grayColor];
    _lab_title.font=[UIFont systemFontOfSize:15];
    _lab_title.text =@"加载中";
    _lab_title.textAlignment=NSTextAlignmentCenter;
    [self  addSubview:_lab_title];
    [_lab_title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top);
        make.left.equalTo(self.mas_left);
        make.right.equalTo(self.mas_right);
        make.bottom.equalTo(self.mas_bottom);
    }];
    
}

- (void)setSelected:(BOOL)selected{
    if (selected) {
        _lab_title.textColor=RGB(74, 170, 220);
        _lab_title.layer.borderColor=RGB(74, 170, 220).CGColor;
    }else{
        _lab_title.textColor=[UIColor grayColor];
        _lab_title.layer.borderColor=[UIColor grayColor].CGColor;
    }
}


@end







